const app = getApp();
const ipUrl = app.globalData.ipUrl;
const HttpUtil = require('../utils/httpUtil')
export function register(params){
  console.log('params',params)
  console.log('username',params.username)
  console.log('password',params.password)
  console.log('nickname',params.nickname)
  return HttpUtil.request({
    data:{
      username:params.username,
      password:params.password,
      nickname:params.nickname,
    },
    url:ipUrl+'/register/',
    method:'post',
    header:{'content-type':"application/x-www-form-urlencoded"},
  })
}